﻿$(function(){
$("h1").click(function(){
		$.ajax({ 
			url:'http://www.douban.com/service/auth/request_token', 
			type:'post', //数据发送方式 
			dataType:'text', //接受数据格式
			data:'oauth_consumer_key=0e61101aeb87dba32b233050c29792e9&oauth_signature_method=HMAC-SHA1&oauth_signature=hellworld&oauth_timestamp=201112252248&oauth_nonce=getToken&oauth_consumer_secret=a54d6e8fa5912ee2',  //要传递的数据 
			error: function(){  //失败
				alert('Error loading document');
			},
			success: function(msg){ //成功
				alert(msg);
			}
		});
})
})
